package com.fuhao.proxy.dynamicproxy.cglib;

/**
 * cglib不需要具体实现类实现接口
 * @author zhang
 *
 */
public class Test {
	public static void main(String[] args) {
		CglibProxy cglibProxy = new CglibProxy();
		//传入具体实现类
		UserServiceImpl userServiceImpl = (UserServiceImpl) cglibProxy.getInstance(new UserServiceImpl());
		userServiceImpl.add();
	}
}
